LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
#$(warning LOCAL_PATH=$(LOCAL_PATH))
LOCAL_C_INCLUDES += $(LOCAL_PATH)/
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libusb
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libcurl
LOCAL_SRC_FILES := \
	SharkLib.cpp \
	KernelObserver.cpp \
	BluetoothObserver.cpp \
	AudioChannelObserver.cpp \
	HttpRequester.cpp \
	SimulateVideoEncoder.cpp \
	MediaFocusControl.cpp \
	MediaInfoObserver.cpp \
	GnssControl.cpp \
	DeviceTime.cpp \
	CarplayInput.cpp \
	tinycap.c \
	tinyplay.c \
	virtual_serial.cpp \
	UsbSwitcher.cpp \
	VersionInfo.cpp \
	AccessoryLib.cpp 



LOCAL_SRC_FILES += \
	       libusb/core.c \
           libusb/descriptor.c \
           libusb/hotplug.c \
           libusb/io.c \
           libusb/sync.c \
           libusb/strerror.c \
	       libusb/os/events_posix.c \
           libusb/os/linux_usbfs.c \
           libusb/os/threads_posix.c \
           libusb/os/linux_netlink.c


include $(call all-subdir-makefiles)


LOCAL_MODULE := SharkRunner
# 其他模块变量LOCAL_LDLIBS（链接库）-l 前缀
LOCAL_LDLIBS += -llog

# libiap2CPP
# libiap2so
LOCAL_SHARED_LIBRARIES := \
    libAppStub \
    libScreenRecord \
    libtinyalsa \
    libspeexresampler \
    libaudioutils \
    libRsaUtils \
    libcurl \
    libxq_player \

include $(BUILD_SHARED_LIBRARY)
#include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
#$(warning LOCAL_PATH=$(LOCAL_PATH))
LOCAL_C_INCLUDES += $(LOCAL_PATH)/
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_SRC_FILES := \
	main.cpp \

include $(call all-subdir-makefiles)


LOCAL_MODULE := SharkCarPlay
# 其他模块变量LOCAL_LDLIBS（链接库）-l 前缀
LOCAL_LDLIBS += -llog

# libiap2CPP
# libiap2so
LOCAL_SHARED_LIBRARIES := \
    libSharkRunner \

#include $(BUILD_SHARED_LIBRARY)
include $(BUILD_EXECUTABLE)

